export default anim =>{
	if (typeof anim.opacity !== 'number') {
		anim.opacity = 1;
	}
	if (typeof anim.repeatCount !== 'number') {
		anim.repeatCount = 1;
	}
	anim.defaultOpacity = 0
	var defaultVisible = ['fadeOut','zoomOut','flash']
	if(defaultVisible.indexOf(anim.animation)>-1){
		anim.defaultOpacity = 1
	}
	if (anim.curve === 'easeIn') {
		anim.curve = 'ease-in';
	} else if (anim.curve === 'easeOut') {
		anim.curve = 'ease-out';
	} else if (anim.curve === 'easeInOut') {
		anim.curve = 'ease-in-out';
	} else {
		anim.curve = 'ease-in';
	}
	var noTranslateX = ['slideLeft','slideRight','fadeInLeft','fadeInRight','shake']
	if(noTranslateX.indexOf(anim.animation) > -1){
		anim.x = 0
	}
	var noTranslateY = ['slideDown','slideUp','fadeInUp','fadeInDown']
	if(noTranslateY.indexOf(anim.animation) > -1){
		anim.y = 0
	}
	if(anim.animation === 'slideLeft'){
		anim.animation = 'slideInLeft'
	}else if(anim.animation === 'slideRight'){
		anim.animation = 'slideInRight'
	}else if(anim.animation === 'slideDown'){
		anim.animation = 'slideInDown'
	}else if(anim.animation === 'slideUp'){
		anim.animation = 'slideInUp'
	}
}